package com.zuoye.day02;

import java.awt.image.PackedColorModel;

public class FoungArrNum {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 3, 4, 5, 5, 4, 7, 8};
        /*for (int i = 0; i < arr.length; i++) {
            int isExist = 0;
            for (int j = 0;j < arr.length;j++){
                if(arr[i] == arr[j] && (i != j)){
                    isExist = 1;
                    break;
                }
            }
            if(isExist == 0){
                System.out.println(arr[i]);
            }
        }*/

        for(int i = 0;i <arr.length;i++){
            int account = 0;
            for(int j = 0;j<arr.length;j++){
                if (arr[i] == arr[j] && (i != j)){
                    account++;
                }
                if (arr[i] != arr[j]){
                    System.out.println(arr[i]);
                }
            }

        }


        }
    }
